﻿@model EventPlanner.Models.Evento

@{
    ViewBag.Title = "Edit";
}

<h2 style="font-family: 'Segoe Print'">Editar Evento</h2>

<script src="@Url.Content("~/Scripts/jquery.validate.min.js")" type="text/javascript"></script>
<script src="@Url.Content("~/Scripts/jquery.validate.unobtrusive.min.js")" type="text/javascript"></script>

@using (Html.BeginForm()) {
    @Html.ValidationSummary(true)
    <fieldset>
        <legend>Evento</legend>

        @Html.HiddenFor(model => model.ID)

        <div class="editor-label">
            @Html.LabelFor(model => model.Nombre)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.Nombre)
            @Html.ValidationMessageFor(model => model.Nombre)
        </div>


        <div class="editor-label">
            @Html.LabelFor(model => model.Lugar.altura)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.Lugar.altura)
            @Html.ValidationMessageFor(model => model.Lugar.altura)
        </div>

        <div class="editor-label">
            @Html.LabelFor(model => model.Lugar.calle)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.Lugar.calle)
            @Html.ValidationMessageFor(model => model.Lugar.calle)
        </div>

        <div class="editor-label">
            @Html.LabelFor(model => model.Lugar.ciudad)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.Lugar.ciudad)
            @Html.ValidationMessageFor(model => model.Lugar.ciudad)
        </div>

        <div class="editor-label">
            @Html.LabelFor(model => model.Lugar.estado)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.Lugar.estado)
            @Html.ValidationMessageFor(model => model.Lugar.estado)
        </div>

        <div class="editor-label">
            @Html.LabelFor(model => model.Lugar.pais)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.Lugar.pais)
            @Html.ValidationMessageFor(model => model.Lugar.pais)
        </div>

        <div class="editor-label">
                @Html.LabelFor(model => model.TipoDeEntrada)
            </div>
            <div class="editor-field">
                @Html.DropDownList("entradas", ViewData["entradas"] as SelectList)
                @Html.ValidationMessageFor(model => model.TipoDeEntrada)
            </div>

        <div class="editor-label">
            @Html.LabelFor(model => model.Inicio)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.Inicio)
            @Html.ValidationMessageFor(model => model.Inicio)
        </div>

        <div class="editor-label">
            @Html.LabelFor(model => model.Fin)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.Fin)
            @Html.ValidationMessageFor(model => model.Fin)
        </div>

        <div class="editor-label">
            @Html.LabelFor(model => model.CapacidadLimitada)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.CapacidadLimitada)
            @Html.ValidationMessageFor(model => model.CapacidadLimitada)
        </div>

        <div class="editor-label">
            @Html.LabelFor(model => model.CupoMaximo)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.CupoMaximo)
            @Html.ValidationMessageFor(model => model.CupoMaximo)
        </div>

        <div class="editor-label">
            @Html.LabelFor(model => model.PoseeFechaLimiteInscrip)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.PoseeFechaLimiteInscrip)
            @Html.ValidationMessageFor(model => model.PoseeFechaLimiteInscrip)
        </div>

        <div class="editor-label">
            @Html.LabelFor(model => model.FechaLimiteInscrip)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.FechaLimiteInscrip)
            @Html.ValidationMessageFor(model => model.FechaLimiteInscrip)
        </div>

        <div class="editor-label">
            @Html.LabelFor(model => model.NombreOrganizador)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.NombreOrganizador)
            @Html.ValidationMessageFor(model => model.NombreOrganizador)
        </div>

        <div class="editor-label">
            @Html.LabelFor(model => model.TelefonoOrganizador)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.TelefonoOrganizador)
            @Html.ValidationMessageFor(model => model.TelefonoOrganizador)
        </div>

        <div class="editor-label">
            @Html.LabelFor(model => model.MailOrganizador)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.MailOrganizador)
            @Html.ValidationMessageFor(model => model.MailOrganizador)
        </div>

        <div class="editor-label">
            @Html.LabelFor(model => model.WebSiteOrganizador)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.WebSiteOrganizador)
            @Html.ValidationMessageFor(model => model.WebSiteOrganizador)
        </div>
        

        <p>
            <input type="submit" value="Save" />
        </p>
    </fieldset>
}

<div>
    @Html.ActionLink("Back to List", "Index")
</div>
